//
//  SimpleCell.swift
//  App_Common_Views
//
//  Created by 蒋晨成 on 2022/2/7.
//

import UICore
import UIKit

public protocol SimpleCell: CollectionViewCell {
    static func estimatedItemSize(viewModel: SimpleCellViewModel?) -> CGSize
    func reusableCell(_ viewModel: SimpleCellViewModel)
    func willDisplay(_ viewModel: SimpleCellViewModel)
    func didEndDisplaying(_ viewModel: SimpleCellViewModel)
}

public extension SimpleCell {
    func reusableCell(_: SimpleCellViewModel) {}
    func willDisplay(_: SimpleCellViewModel) {}
    func didEndDisplaying(_: SimpleCellViewModel) {}
}
